package ae.pcfc.etks.online.web.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.hibernate.validator.constraints.NotEmpty;

public class UserService extends BaseModel implements Serializable{
	
	
	 /**
	 * 
	 */
	private static final long serialVersionUID = 3389301791563378397L;
	
	@NotEmpty
	private List<Long> services;

	public List<Long> getServices() {
		return services;
	}

	public void setServices(List<Long> services) {
		this.services = services;
	}
	
	/**
     * 
     * @param numOfItems
     * @return
     */
	
	
    public static UserService createSampleData(int numOfItems){
        ArrayList newitems = new ArrayList();
        for (int i=0; i<numOfItems; i++) {
            UserServicesList item = new UserServicesList();
            item.setId(i + 1);
            item.setDescription("Item No. " + i);
            if (i%2==0)
                item.setSelected(true);
            newitems.add(item);
        }
        UserService serviceList = new UserService();
        serviceList.setServices(newitems);
        
        return serviceList;
        
    }
}  


